<div class="post">
		<div class="post_title">
			<h1>分類列表</h1>
		</div>
		<div class="post_body">
			<p>你可以管理列表.</p>

				<?php $this->load->view('admin/partials/notices') ?>
				<table class="admin">
				<tr>
					<th class="admin">ID</td>
					<th class="admin">名字</td>

					<th class="admin">狀態</td>
					<th class="admin">操作</td>
				</tr>
														<?php if ($categories): ?>
					<?php foreach ($categories as $category): ?>
					<tr>
						<td class="admin"><?php echo $category->id; ?></td>
						<td class="admin"><?php for($i=0;$i<$category->deep;$i++){ echo "&nbsp&nbsp&nbsp|-";}?><?php echo $category->name; ?></td>
						<td class="admin">
						<?php if ("active" == $category->status):?>
						<img src="<?php echo image_url('admin/icons/enable.png');?>"/>
						<?php else:?>
						<img src="<?php echo image_url('admin/icons/disable.png');?>"/>
						<?php endif;?>
						</td>
						<td class="admin">
						<a href="<?php echo site_url('admin/galleries/edit_category/' . $category->id);?>"><img src="<?php echo image_url('admin/icons/edit.png');?>"/></a>
						<!--  <a href="<?php echo site_url('admin/galleries/del_category/' . $category->id);?>" onclick="return confirm('你確定要刪除該分類嗎?該分類下的子分類也會一並刪除.');"><img src="<?php echo image_url('admin/icons/delete.png');?>"/></a>-->
					</tr>
					<?php endforeach; ?>
				<?php else: ?>
					<tr>
					<td colspan="4"><?php echo lang('no_categories'); ?></td>
					</tr>
				<?php endif; ?>
													</table>

				<br />
				<!-- <a href="<?php echo site_url('admin/galleries/create_category');?>">新建分類</a> -->		</div>
</div>